package com.wyh.common.utils;



/**
 * Created by xxs on 2021/11/18 17:01
 *
 * @Description
 */
public class WXShareUtils {



    public static String byteToHex(final byte[] hash) {
        StringBuffer stringBuffer = new StringBuffer();
        for (int i=0; i<hash.length;i++){
            String hexString = Integer.toHexString(hash[i] & 0xFF);
            if (hexString.length() < 2){
                stringBuffer.append(0);
            }
            stringBuffer.append(hexString);
        }

        return stringBuffer.toString();

    }
}
